package com.xxzx.publicprevention.service;

import com.xxzx.publicprevention.pojo.RecordDO;
import com.xxzx.publicprevention.pojo.UserDO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liyu
 * @since 2020-10-30
 */
public interface UserService extends IService<UserDO> {

    List<UserDO> getAllUsers();

    UserDO getUser(Integer id);

    UserDO getUserByOpenIdAndwxName(String openId, String wxName);

    UserDO getUserByOpenId(String openId);

    UserDO getUserByPhoneNumber(String phoneNumber);

    List<UserDO> getAllUserInOpenIdNotNull();

    List<UserDO> getUserByLocationCity(String locationCity);

    List<UserDO> getUserByLocationStreet(String locationStreet);

    UserDO getUserInfo(String openId, String wxName, String unionId);

    Boolean checkUserPhoneNumber(Integer userId);

    Map<String,String> bindPhoneNumberAndRealName(Integer userId, String phoneNumber, String realName);

    Map<String,String> updateUserLocation(Integer userId, String locationCity, String locationStreet);

    int getCount();

    List<UserDO> getUserByPage(Integer curr, Integer size);

    void editUser(UserDO userDO);

}
